package com.bobo.utis;
/**
 * 
 * @ClassName: FileSizeUnit 
 * @Description: 文件大小的单位
 * @author: charles
 * @date: 2020年8月19日 上午11:07:29
 */
public enum FileSizeUnit {
	
 //	B,K、M、G、T、P
	
	B(1,"byte"),KB(1024,"kb"),MB(1024*1024,"mb"),GB(1024*1024*1024,"gb"),TB(1024*1024*1024*1024,"tb"),
	PB(1024*1024*1024*1024*1024,"pb");
	private int code;
	private String name ;
	FileSizeUnit(int code,String name){
		this.code=code;
		this.name=name;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	

}
